import { post } from "@/utils/request";
export const contentConfig = {
  title: "table",
  showBack: true,
  dataKey: "purseInfoList",
  propList: [
    { prop: "type", label: "交易类型", minWidth: "120" },
    { prop: "date", label: "日期", minWidth: "140" },
    { prop: "balance", label: "交易金额", minWidth: "80" },
    { prop: "beforeBalance", label: "交易前金额", minWidth: "80" },
    { prop: "residue", label: "交易后金额", minWidth: "80" },
    { prop: "descriptions", label: "交易说明", minWidth: "150" },
  ],
  showIndexColumn: true,
  customRequestFn: (params) => {
    return post("/purse/searchEarningsList", params);
  },
  pageInfo: {
    loading: false,
    currentPage: 1,
    pageSize: 10,
    total: 0,
  },
};
